﻿// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package com.adobe.captivate.events 
{
	import flash.events.Event;
	import com.adobe.captivate.widgets.CPSlideProperties;

	/**
	 * The CaptivateEvent class defines the base class for all events that will be fired by a captivate movie. 
     *
     *
     * @langversion 3.0
     * @playerversion Flash 9.0.28.0
	 */
	public class CPSlideExitEvent extends CaptivateEvent 
	{
		public static const CPSLIDEEXITEVENT:String = "CPSlideExitEvent";
		protected var m_FrameNumber:Number;
		protected var m_SlideNumber:Number;
		protected var m_SlideLabel:String;
		protected var m_SlideProperties:CPSlideProperties;

		public function CPSlideExitEvent(captivateVersion:String="",frameNumber:Number=0,slideNumber:Number=0,
			slideLabel:String="",slideProperties:CPSlideProperties=null,cancelable:Boolean = false) 
		{
			super(CPSlideExitEvent.CPSLIDEEXITEVENT,captivateVersion,cancelable);
			m_FrameNumber = frameNumber;
			m_SlideNumber = slideNumber;
			m_SlideLabel = slideLabel;
			m_SlideProperties = slideProperties;
		}
		public override function clone():Event
		{
			return new CPSlideExitEvent(captivateVersion,frameNumber,slideNumber,slideLabel,slideProperties,cancelable);
		}
		public function get frameNumber():Number
		{
			return m_FrameNumber;
		}
		public function get slideNumber():Number
		{
			return m_SlideNumber;
		}
		public function get slideLabel():String
		{
			return m_SlideLabel;
		}
		public function get slideProperties():CPSlideProperties
		{
			return m_SlideProperties;
		}
		public override function toString():String
		{
			return formatToString("CPSlideExitEvent","type","bubbles","cancelable","eventPhase","captivateVersion","slideNumber","frameNumber","slideLabel","slideProperties");
		}
	}
}
